<script type="text/javascript">
<!--
var list,pl,cart;
seajs.use('src/front/index', function (index) {
	$(function(){
// 		alert(a);
// 		list = product.product_list;
// 		pl = product.productListView;
		console.log(index);
		cart = index.cart;
/* 		var p = new product.P({name:'aaa'});
		var pv = new product.PV({
			model:p,
			id:"product_item"+p.id
		}); */
	});
})
//-->
</script>

<script type="text/template" id="product-item-template">  
        <div>  
            <h3 id="name"><%=name%></h3>  
            <button class="add_cart" product_id='<%=id%>'>add to cart</button>  
        </div>  
</script>  
<script type="text/template" id="cart-item-template">  
        <div>  
            <h3 id="name"><%=name%></h3> 
			<input type="text" class="cart_item_num" value="<%=buy_num%>"/> 
            <button class="remove_from_cart" product_id='<%=id%>'>remove</button>  
        </div>  
</script>  

<div id="productList">


</div>
<hr />
cart list 
---
<div id="cartList">

</div>